## Makefile.am -- Process this file with automake to produce Makefile.in

AM_CFLAGS = -I$(top_builddir) -I$(top_srcdir) $(XML_CPPFLAGS)

noinst_LTLIBRARIES = librun2.la
pkgdata_DATA = run2.xsd
EXTRA_DIST = run2.xsd

librun2_la_SOURCES = \
	util.c \
	util.h \
	confdata.c \
	confdata.h \
	confparse.c \
	confparse.h \
	confparser.c \
	confparser.h \
	checkX.c \
	checkX.h \
	env.c \
	env.h \
	target.c \
	target.h \
	tokenizer.c \
	tokenizer.h \
	launch.c \
	launch.h

nodist_librun2_la_SOURCES = run2_xsd.c

# librun2_la_LIBADD = ../cdsl/libcdsl.la

CLEANFILES = run2_xsd.c
run2_xsd.c: run2.xsd Makefile
	$(AM_V_at)echo "const char * RUN2_XSD = " > $@
	$(AM_V_at)cat $< | sed -e 's/"/\\"/g' | \
		sed -e 's/^/  "/' -e 's/$$/\\n"/' >> $@
	$(AM_V_at)echo ";" >> $@

